<?php template('header')?>

<div id="content">
<div class="post">

	<h3>友情链接</h3>

	<div class="links">
		<?php foreach ( $links as $linkgroup ) : ?>

		<h4><?php echo $linkgroup['catename']; ?></h4>
		<ul>
		<?php foreach ( $linkgroup['links'] as $link ) : ?>
			<li><a href="<?php echo $link['url']?>" title="<?php echo $link['description'];?>" target="_blank"><?php echo $link['logo'] ? "<img src=\"$link[logo]\" />" : $link['name']; ?></a></li>
		<?php endforeach; ?>
		</ul>
		<?php endforeach; ?>
	</div>

</div>
</div>

<?php template('sidebar')?>

<?php template('footer')?>